package cn.com.surker.enums.production.invoice;

import cn.com.surker.enums.EnumField;
import cn.com.surker.enums.ICodeDescEnum;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 退剩转类型
 *
 * @author luotao
 * @date 2024/9/30
 */
public enum ShipTypeEnum implements ICodeDescEnum {

	//	退砼操作
	//	BACK_SCRAP(0, "作废", ShipTableEnum.BACK.getCode()),
	//	退砼的转入转出类型用INVOICE_TRAN_TO_OWN,INVOICE_TRAN_TO_OTHER
	//BACK_TRAN_TO_OWN(1, "退砼转出到本站", ShipTableEnum.BACK.getCode()),
	//BACK_TRAN_TO_OTHER(2, "退砼转出到其他站", ShipTableEnum.BACK.getCode()),

	//	发货单操作
	INVOICE_SCRAP(0, "作废"),
	//	转料操作源发货单和目标发货单同一个操作记录,用source_invoice_id和target_invoice_id区分
	INVOICE_TRAN_TO_OWN(1, "转料(本站)"),
	INVOICE_TRAN_TO_OTHER(2, "转料(其他站)"),
	INVOICE_SPLIT_TRAN_TO_OTHER(3, "分车转料)"),

	//	发货单来源
	/*TRAN_FROM_OWN(6, "本站转入", ShipTableEnum.INVOICE_OUT.getCode()),
	TRAN_FROM_OTHER(7, "其他站转入", ShipTableEnum.INVOICE_OUT.getCode()),*/

	//	过磅操作
	SEND_OUT_WEIGHT(4, "发货过磅"),
	BACK_SCRAP_WEIGHT(5, "退砼过磅"),
	SEPARATE_WEIGHT(6, "分料过磅"),
	INVOICE_RESTORE(7, "作废后恢复"),
	//	恢复后由0的操作记录转换过来,用于标识该记录为作废,但是不计入统计
	INVOICE_SCRAP_NO_CENUS(8, "作废"),
	;

	private final String description;

	private final Integer code;


	ShipTypeEnum(Integer code, String description) {
		this.description = description;
		this.code = code;
	}


	public String getDescription() {
		return description;
	}

	public Integer getCode() {
		return code;
	}

}
